<?php
return array(
    'ModulePrivilegeUser' => array(
        'table'                 => 'module_privilege_users',
        'columns'               => array('userId', 'name', 'email', 'username', 'password', 'roleId', 'created'),
        'autoIncrColumn'        => 0,
        'diffUpColumns'         => array(),
        'updateFilter'          => array(0),
        'toArrayFilter'         => array(),
        'searchColumns'         => array(0),
        'updateColumns'         => array(0),
        'jsonColumns'           => array(),
        'cacheColumn'           => 0,
        'shardColumn'           => null,
        'pkColumn'              => 0,
        'deleteColumns'         => array(0),
        'tableShardCount'       => null,
        'isList'                => false,
        'dbType'                => 'MySql',
        'cacheTime'             => 0, // disable cache
    ),

    'ModulePrivilegeRole' => array(
        'table'                 => 'module_privilege_role',
        'columns'               => array('roleId', 'userId', 'name', 'status', 'privilegeIds'),
        'autoIncrColumn'        => 0,
        'diffUpColumns'         => array(),
        'updateFilter'          => array(0),
        'toArrayFilter'         => array(),
        'searchColumns'         => array(0),
        'updateColumns'         => array(0),
        'jsonColumns'           => array(4 => 65535),
        'cacheColumn'           => 0,
        'shardColumn'           => null,
        'pkColumn'              => 0,
        'deleteColumns'         => array(0),
        'tableShardCount'       => null,
        'isList'                => false,
        'dbType'                => 'MySql',
        'cacheTime'             => 0, // disable cache
    ),

    'ModulePrivilege' => array(
        'table'                 => 'module_privilege',
        'columns'               => array('privilegeId', 'pIds', 'cIds', 'name', 'requestName', 'status'),
        'autoIncrColumn'        => 0,
        'diffUpColumns'         => array(),
        'updateFilter'          => array(0),
        'toArrayFilter'         => array(),
        'searchColumns'         => array(0),
        'updateColumns'         => array(0),
        'jsonColumns'           => array(1 => 65535, 2 => 65535),
        'cacheColumn'           => 0,
        'shardColumn'           => null,
        'pkColumn'              => 0,
        'deleteColumns'         => array(0),
        'tableShardCount'       => null,
        'isList'                => false,
        'dbType'                => 'MySql',
        'cacheTime'             => 0, // disable cache
    ),

    'ModulePrivilegeSession' => array(
        'table'                 => 'module_privilege_sessions',
        'columns'               => array('userId', 'session', 'created', 'expired'),
        'autoIncrColumn'        => null,
        'diffUpColumns'         => array(),
        'updateFilter'          => array(0),
        'toArrayFilter'         => array(),
        'searchColumns'         => array(0),
        'updateColumns'         => array(0),
        'jsonColumns'           => array(),
        'cacheColumn'           => 0,
        'shardColumn'           => null,
        'pkColumn'              => 0,
        'deleteColumns'         => array(0),
        'tableShardCount'       => null,
        'isList'                => false,
        'dbType'                => 'MySql',
        'cacheTime'             => 0, // disable cache
    ),

    'ModulePrivilegeLog' => array(
        'table'                 => 'module_privilege_logs',
        'columns'               => array('logId', 'actorId', 'privilegeId', 'detail', 'created'),
        'autoIncrColumn'        => 0,
        'diffUpColumns'         => array(),
        'updateFilter'          => array(0),
        'toArrayFilter'         => array(),
        'searchColumns'         => array(0),
        'updateColumns'         => array(0),
        'jsonColumns'           => array(),
        'cacheColumn'           => 1,
        'shardColumn'           => null,
        'pkColumn'              => 0,
        'deleteColumns'         => array(0),
        'tableShardCount'       => null,
        'isList'                => true,
        'dbType'                => 'MySql',
        'cacheTime'             => 0, // disable cache
    ),
);